const { defineConfig } = require('@vue/cli-service')
const { VueLoaderPlugin } = require('vue-loader');
module.exports = defineConfig({
  transpileDependencies: [
    'quasar'
  ],
  
  pluginOptions: {
    quasar: {
      importStrategy: 'kebab',
      rtlSupport: false
    }
  },

  chainWebpack: (config) => {
    config.resolve.alias.set('video.js', 'video.js/dist/video.js');
    config.resolve.alias.set('video-js.css', 'video.js/dist/video-js.css');
    // 添加 VueLoaderPlugin
    config.plugin('vue-loader').use(VueLoaderPlugin);
    // 确保 vue-loader 被正确应用到 .vue 文件
    config.module
      .rule('vue')
      .test(/\.vue$/)
      .use('vue-loader')
      .loader('vue-loader')
      .end();
  }
})
